<<<template "base/base.html" .>>>
<<<define "head">>>
<title>聊天室</title>
<<<end>>>
<<<define "body">>>
<div class="container">
    <h3>当前用户: <span id="uname"><<<.UserName>>></span></h3>
    <form class="form-inline">
        <div class="col-md-6 form-group">
            <input id="sendbox" type="text" class="form-control" onkeydown="if(event.keyCode==13)return false;" required>
        </div>
        <button id="sendbtn" type="button" class="btn btn-default">发送</button>
    </form>
</div>

<div class="container">
    <h3>聊天记录:</h3>
    <ul id="chatbox">
        <li>欢迎</li>
    </ul>
</div>
<<<end>>>